package cn.edu.scau.cmi.chenjunlin.mterProgramming.Experiment2.Example1;

public class ChairMan{
       private static ChairMan instance;
       private String name;
       private ChairMan(String name) {
    	   this.name = name;
       }
       public static ChairMan getInstance(String name) {
    	   if(instance == null && !name.equals(null))
    		   instance = new ChairMan(name);
    	   return instance;
       }

       public String toString() {
    	   return name;
       }
}